﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Configuration;

namespace Mighty.Lib
{
    public class MightyConfig : ConfigurationSection
    {

        public MightyConfig() {  }

        [ConfigurationProperty("stringValue", IsRequired = true)]
        public string StringValue
        {
            get
            {
                return (string)base["stringValue"];
            }
        }



    }

    public class MightyConfigProvider
    {

        private MightyConfig _config = null;
        public MightyConfigProvider()
        {
            _config = ConfigurationManager.GetSection("example") as MightyConfig;
        }

        public MightyConfig Config
        {
            get
            {
                return _config;
            }
        }

    }

}
